package com.yiren.manager.service.impl.desk;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yiren.core.exception.MyException;
import com.yiren.core.service.GenericServiceImpl;
import com.yiren.entity.YrComplaintCheck;
import com.yiren.manager.repository.desk.YrComplaintCheckRepository;
import com.yiren.manager.service.iface.desk.YrComplaintCheckService;

@Service
public class YrComplaintCheckServiceImpl extends GenericServiceImpl<YrComplaintCheck, String> implements YrComplaintCheckService{

	@Autowired
	public YrComplaintCheckServiceImpl(YrComplaintCheckRepository repository) {
		super(repository);
	}

	public void updateBetch(List<YrComplaintCheck> list) throws MyException {
		for(YrComplaintCheck entity : list){
			this.repository.save(entity);
		}
	}

}
